package com.levy.contronller.javase.designModel.observer.news;

import java.util.Observable;
import java.util.Observer;

/**
 * Created by levy on 2018/8/7.
 */
public class ReaderObserver implements Observer {
    @Override
    public void update(Observable o, Object arg) {
        BlogUser blogUser = (BlogUser) o;
        Article article = (Article) arg;
        System.out.println("博主发表了新的文章---"+arg.toString());
    }
}
